package com.gues.ddc_app.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gues.ddc_app.entity.Menu;
import com.gues.ddc_app.entity.Orders;
import com.gues.ddc_app.mapper.MenuMapper;
import com.gues.ddc_app.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huHang
 * @since 2023-02-12
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
    @Override
    public <E extends IPage<Menu>> E page(E page, Wrapper<Menu> queryWrapper) {
        return baseMapper.queryByCondition(page,queryWrapper);
    }
    public List<Menu> getList(Wrapper<Menu> wrapper){
        return baseMapper.getList(wrapper);
    }
}
